class Test:
    def __init__(self, name, age):
        self.name = name
        self.age = age
        # self.__name = name
        # self.__age = age

    def pr(self):
        # def __pr(self):
        print('%s的年龄是%d' % (self.name, self.age))
        # print('%s的年龄是%d' % (self.__name, self.__age))


test = Test('tom', 18)
print(test.name)
# test.__pr()
test.pr()
